import type { ProfileTypeItem } from '@/types/member'
import { http } from '@/utils/request'

/**
 * 获取个人信息
 */
export const getProfileAPI = () => {
  return http<ProfileTypeItem>({
    method: 'GET',
    url: '/member/profile'
  })
}

export const putMemberProfileAPI = (data:ProfileParams)=>{
    return http<ProfileParams>({
        url:'/member/profile',
        method:'PUT',
        data
    })
}